package com.lin.fengxiu.service;

import com.lin.fengxiu.model.Sku;
import com.lin.fengxiu.repository.SkuRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName SkuService
 * @Description TODO
 * @Author wushaopei
 * @Date 2021/4/3 12:00
 * @Version 1.0
 */
@Service
public class SkuService {

    @Autowired
    private SkuRepository skuRepository;

    /**
     * @Description TODO 根据ids查询sku
     * @param ids
     * @return
     */
    public List<Sku> getSkuListByIds(List<Long> ids){
        return this.skuRepository.findAllByIdIn(ids);
    }

}
